import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useTabsStore = defineStore(
  'tabs',
  () => {
    const pathList = ref([])
    const setTabs = path => {
      pathList.value = path
    }
    return { pathList, setTabs }
  },
  {
    persist: {
      key: 'tabs',
      storage: localStorage
    }
  }
)
